<template>
  <div class="">
    <Detail v-if="$route.query.orderId"></Detail>
    <AllOrder v-else></AllOrder>
  </div>
</template>

<script setup lang="ts">
import Detail from "./detail/index.vue";
import AllOrder from "./allOrder/index.vue";
import { useRoute } from "vue-router";
let $route = useRoute();
</script>

<style scoped></style>
